package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Novel struct {
	gorm.Model
	Title  string `gorm:"type:varchar(50)"`
	Author string `gorm:"type:varchar(50)"`
	Desc   string `gorm:"type:varchar(50)"`
}

// /////////
type Car struct {
	gorm.Model
	CarNo   string `gorm:"type:varchar(50)"` //车编号
	CarName string `gorm:"type:varchar(50)"` //车名称
	CarCode string `gorm:"type:varchar(50)"` //车牌号
}
type CarOrder struct {
	gorm.Model
	OrderNo   string `gorm:"type:varchar(50)"` //订单编号
	OrderFrom string `gorm:"type:varchar(50)"` //出发地
	OrderTo   string `gorm:"type:varchar(50)"` //目的地
	OrderGood string `gorm:"type:varchar(50)"` //
	Cid       int    `gorm:"type:int"`
}
type CarOrderList struct {
	OrderId   int
	OrderNo   string
	OrderFrom string
	OrderTo   string
	OrderGood string
	CarNo     string
	CarName   string
	CarCode   string
}
